<?php
class Application_Form_Login extends Zend_Form
{
	public function init()
	{
		$this->setName('login');

		$username = new Zend_Form_Element_Text('username');
		$username->setLabel('Username')->setRequired(true);

		$password = new Zend_Form_Element_Password('password');
		$password->setLabel('Password')->setRequired(true);
		
		$token = new Zend_Form_Element_Hidden('token');
		$token->setRequired(true)->addValidator('NotEmpty');

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')->setLabel('Submit');

		$this->addElements(array($username, $password, $token, $submit));
		
		
	}
}